package com.kzw.service;

import com.kzw.dao.CategoryDao;
import com.kzw.entity.Category;

import my.db.Page;

public class CategoryService {

	private CategoryDao dao = new CategoryDao();

	public Page<Category> list(Page<Category> page, String title) {
		return dao.findPage(page, title);
	}

	public void save(Category category) {
		dao.save(category);
	}

	public Category get(Long id) {
		return dao.get(id);
	}

	public void update(Category category) {
		dao.update(category);
	}

	public void delete(long id) {
		dao.delete(id);		
	}
}
